<extend name="Public:common"/>
<block name="css">
    <style>
        .newMess th{text-align:center;}
        th{text-align: center;}
    </style>
</block>
<block name="content">
    <div class="page-header"><h1><i class="fa fa-home"></i> 首页>签证管理>签证添加</h1></div>
     <div class="container-fluid">
                 <form action="{:U('addVisa')}" method="post">

                         <table class="table table-striped table-bordered table-hover table-condensed text-center">
                             <tbody>
                             <tr>
                                 <td ><b><span>*</span>国 家:</b></td>
                                 <td  class="text-left" ><input type="text" name="visa_name" required=""></td>
                             </tr>
                             <tr>
                                 <td><b><span>*</span>费用:</b></td>
                                 <td class="text-left"><input type="text" name="visa_price" value="0" required="" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"></td>
                             </tr>
                             <tr>
                                 <td><b><span>*</span>状态:</b></td>
                                 <td class="text-left">

                                     <input type="radio" value="1" name="visa_status" checked>上架
                                     <input type="radio" value="0" name="visa_status" >下架
                                 </td>
                             </tr>
                             <tr>
                                 <td ><b><span>*</span>样版:</b></td>
                                 <td class="text-left">
                                     <textarea name="sample" id="editor" cols="30" rows="10"></textarea>
                                 </td>
                             </tr>
                              <tr>
                                  <td colspan="2">
                                      <a class="btn btn-info" href="javascript:history.go(-1)">返回</a>
                                      <input type="submit" class="btn btn-primary" value="新增">
                                  </td>
                              </tr>

                             </tbody>
                         </table>
                 </form>
             </div>
         </div>
     </div>
</block>
<block name="js">
    <!-- 配置文件 -->
    <script type="text/javascript" src="__ROOT__/Public/ueditor1_4_3_3/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__ROOT__/Public/ueditor1_4_3_3/ueditor.all.js"></script>
    <script src="__PUBLIC__/plugins/formValidator/formValidator-4.1.3.js"></script>
    <script>
        var ue;
        $(function () {
            var ue = UE.getEditor('editor', {
                toolbars: [
                    [
                        'fullscreen',
                        'source',
                        'undo',
                        'redo',
                        'bold',
                        'fontsize',
                        'simpleupload', //单图上传
                        'insertimage', //多图上传
                        'justifyleft', //居左对齐
                        'justifyright', //居右对齐
                        'justifycenter', //居中对齐
                        'justifyjustify', //两端对齐
                        'edittip ', //编辑提示
                        'drafts', // 从草稿箱加载
                     ]
                ],
                initialFrameWidth:800,
                initialFrameHeight:300,
                autoHeightEnabled: true,
                autoFloatEnabled: true
            });
        });
    </script>
</block>